package com.rockcent.mall.lib.domain;

import com.rockcent.common.domain.IDEntityMall;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 *
 * 乐宸资金账户
 * Created by zhangjh on 17/03/08.
 */
@Entity
@Table(name = "rockcent_fund")
@DynamicInsert
@DynamicUpdate
public class RockcentFund extends IDEntityMall {

    /**
     * 总账户金额
     */
    @Column(columnDefinition = "DECIMAL(30,10) comment '总账户金额'")
    private BigDecimal totalAmount = BigDecimal.ZERO;

    /**
     *实际缴费金额
     */
    @Column(columnDefinition = "DECIMAL(30,10) comment '实际缴费金额'")
    private BigDecimal actualRechargeAmount = BigDecimal.ZERO;


    /**
     * 赠送金额
     */
    @Column(columnDefinition = "DECIMAL(30,10) comment '赠送金额：普通充值+赠送充值'")
    private BigDecimal presentRechargeAmount = BigDecimal.ZERO;


    /**
     * 备注
     */
    @Column(columnDefinition = "varchar(30)  comment '备注'")
    private String remark;



    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public BigDecimal getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(BigDecimal totalAmount) {
        this.totalAmount = totalAmount;
    }

    public BigDecimal getActualRechargeAmount() {
        return actualRechargeAmount;
    }

    public void setActualRechargeAmount(BigDecimal actualRechargeAmount) {
        this.actualRechargeAmount = actualRechargeAmount;
    }

    public BigDecimal getPresentRechargeAmount() {
        return presentRechargeAmount;
    }

    public void setPresentRechargeAmount(BigDecimal presentRechargeAmount) {
        this.presentRechargeAmount = presentRechargeAmount;
    }

    @Override
    public String toString() {
        return "RockcentFund{" +
                "totalAmount=" + totalAmount +
                ", actualRechargeAmount=" + actualRechargeAmount +
                ", presentRechargeAmount=" + presentRechargeAmount +
                ", remark='" + remark + '\'' +
                '}';
    }
}
